package hero.mps.web.school_teacher.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SchoolTeacher {
    @TableId(type = IdType.AUTO)
    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 老师姓名
     */
    private String teacherName;

    /**
     * 性别0：男1：女
     */
    private String sex;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 教师编号
     */
    private String teacherNum;

    /**
     * 密码
     */
    private String password;

    /**
     * 角色id
     */
    @TableField(exist = false)
    private Integer roleId;
}
